import request from '@/util/request/request.ts'
/***    
request.globalRequest(url,请求方式,obj数据,123,true单,true 多array)url, method, data, power, isUpload, isFiles
1===没登录前的请求头
2===携带请求头token
3===刷新token
***/
const apiCode = {}
// 登录类验证码
apiCode.loginCode = (data) => request.globalRequest({url:`/mobile/sms/user/loginCode`, method:'GET', data, power:1})
// 更改类验证码
apiCode.updateCode = (data) => request.globalRequest({url:`/mobile/sms/user/updateCode`, method:'GET', data, power:1})
// 查询类的验证码
apiCode.selectCode = (data) => request.globalRequest({url:`/mobile/sms/user/selectCode`, method:'GET', data, power:2})

export default apiCode